/***********************************************************************************************************************
    @file    oled.h
    @author  FAE Team
    @date    2-2025
    @brief   THIS FILE PROVIDES ALL THE SYSTEM FUNCTIONS.
  **********************************************************************************************************************
    @attention

    <h2><center>&copy; Copyright(c) <2025> <MySentech></center></h2>

      Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
    following conditions are met:
    1. Redistributions of source code must retain the above copyright notice,
       this list of conditions and the following disclaimer.
    2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
       the following disclaimer in the documentation and/or other materials provided with the distribution.
    3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or
       promote products derived from this software without specific prior written permission.

      THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
    INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
    DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
    SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
    WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  *********************************************************************************************************************/

#include "main.h"
#ifndef __OLED_H
#define __OLED_H

/**
 * @brief Init OlED Display.
 * @param None.
 */
void OLED_Init(void);

/**
 * @brief Clear OlED Display.
 * @param None.
 */
void OLED_Clear(void);

/**
 * @brief Display integer data values on the OLED screen.
 * @param data   Pointer to an array of 16-bit unsigned integers to display.
 * @param index  Start index (line number, 1-based) on the OLED screen.
 * @param num    Number of data items to display (maximum 4).
 */
void Oled_Display_Datas(u16* data, u8 index, u8 num);

/**
 * @brief Display frequency values on the OLED screen.
 * @param fre    Pointer to an array of float frequency values to display.
 * @param index  Start index (line number, 1-based) on the OLED screen.
 * @param num    Number of frequency values to display (maximum 4).
 */
void Oled_Display_Fres(float* fre, u8 index, u8 num);

/**
 * @brief Display capacitance values on the OLED screen.
 * @param cap    Pointer to an array of float capacitance values to display.
 * @param index  Start index (line number, 1-based) on the OLED screen.
 * @param num    Number of capacitance values to display (maximum 4).
 */
void Oled_Display_Caps(float* cap, u8 index, u8 num);

/**
 * @brief Display temperature value on the OLED screen.
 * This function displays a single temperature value with 1 decimal precision.
 * The temperature is shown on the first line of the screen.
 *
 * @param temp   Temperature value in degrees Celsius.
 * @param index  Start index (line number, 1-based) on the OLED screen.
 */
void Oled_Display_Temp(float temp, u8 index);



#endif  
	 

/**
  * @}
  */

/**
  * @}
  */

/**
  * @}
  */

/********************************************** (C) Copyright MySentech **********************************************/


